package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.celebration.CelebrationCrossProgress;
import com.yanqu.road.entity.activity.celebration.CelebrationScoreConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author cwq
 * @Data 2021/7/12 17:42
 */
public class CelebrationBusiness {

    // CelebrationProgress
    public static Map<Integer, CelebrationCrossProgress> getCelebrationProgressMap(int activityId) {
        return DaoHelper.getCelebrationDataDaoImpl().getCelebrationProgressMap(activityId);
    }

    public static boolean addCelebrationProgress(CelebrationCrossProgress celebrationProgress) {
        return DaoHelper.getCelebrationDataDaoImpl().add(celebrationProgress);
    }

    public static boolean updateCelebrationProgress(CelebrationCrossProgress celebrationProgress) {
        return DaoHelper.getCelebrationDataDaoImpl().update(celebrationProgress);
    }

    // CelebrationScoreConfig
    public static List<CelebrationScoreConfig> getCelebrationScoreConfigList(int activityId) {
        return DaoHelper.getCelebrationConfigDaoImpl().getCelebrationScoreConfigList(activityId);
    }
}
